<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Migration_alter_category extends CI_Migration {

	public function up() {
		$fields['cat_type'] = array(
                              'type'        => 'VARCHAR',
                              'constraint'  => '255',
                              'default'  		=> 'post',
                              'null'        => FALSE
                            );
    $this->dbforge->add_column('ci_category', $fields);
	}

	public function down() {
		$this->dbforge->drop_column('ci_category', 'cat_type');
	}

}

/* End of file class_name.php */
/* Location: ./application/migrations/class_name.php */